const fs = require('fs');

fs.writeFile('./writeAsync.txt', 'write-async', 'utf8', err => {
  if (err) throw err;
})

fs.readFile('./writeAsync.txt', 'utf8', (err, data) => {
  if (err) throw err;
  console.log(data);
})